class TasksController < ApplicationController
	  skip_before_filter :verify_authenticity_token,
                     :if => Proc.new { |c| c.request.format == 'application/json' }

  # Just skip the authentication for now
  # before_filter :authenticate_user!

  respond_to :json

  def index
    render :text => '{
  "success":true,
  "info":"ok",
  "data":{
          "tasks":[
                    {"title":"No"},{"title":"Address"},{"title":"Name"},{"title":"Password"},{"title":"Keyword"},{"title":"Website"},{"title":"Status"},
                  	{"title":"1"},{"title":"Address 1"},{"title":"Name 1"},{"title":"Password 1"},{"title":"fat"},{"title":"12"},{"title":"Status"},
                  	{"title":"2"},{"title":"Address 2"},{"title":"Name 2"},{"title":"Password 2"},{"title":"fat"},{"title":"31"},{"title":"Status"},
                  	{"title":"3"},{"title":"Address 3"},{"title":"Name 3"},{"title":"Password 3"},{"title":"fat"},{"title":"123"},{"title":"Status"},
                  	{"title":"4"},{"title":"Address 4"},{"title":"Name 4"},{"title":"Password4"},{"title":"fat"},{"title":"321"},{"title":"Status"},
                  	{"title":"5"},{"title":"Address 5"},{"title":"Name 5"},{"title":"Password5"},{"title":"Kefatword"},{"title":"312"},{"title":"Status"},
                  	{"title":"6"},{"title":"Address 6"},{"title":"Name 6"},{"title":"Password6"},{"title":"fat"},{"title":"321"},{"title":"Status"},
                  	{"title":"7"},{"title":"Address 7"},{"title":"Name 7"},{"title":"Password7"},{"title":"fat"},{"title":"321"},{"title":"Status"}
                  ]
         }
}'
  end

   def complete
    render :text => '{
  "success":true,
  "info":"ok",
  "data":{
          "tasks":[
                    {"title":"Complete the app"},
                     {"title":"Complete the app"},
                      {"title":"Complete the app"},
                       {"title":"Complete the app"},
                        {"title":"Complete the app"},
                         {"title":"Complete the app"},
                           {"title":"Complete the app"},
                     {"title":"Complete the app"},
                      {"title":"Complete the app"},
                       {"title":"Complete the app"},
                        {"title":"Complete the app"},
                         {"title":"Complete the app"},
                           {"title":"Complete the app"},
                     {"title":"Complete the app"},
                      {"title":"Complete the app"},
                       {"title":"Complete the app"},
                        {"title":"Complete the app"},
                         {"title":"Complete the app"},
                    {"title":"Complete the tutorial"}
                  ]
         }
}'
  end

end
